import java.sql.SQLOutput;
import java.util.Calendar;
import java.util.Date;
import java.util.concurrent.TimeUnit;

/**
 * @author 李琦 on 2021/8/8.
 * @version java version "16.0.1" 2021-04-20
 * 本项目旨在终端窗口显示时间
 */
public class test {
    public static void main(String[] args) throws Exception {
        for(;;) {
            Calendar date = Calendar.getInstance();
            int h = date.get(Calendar.HOUR_OF_DAY);//获取小时
            int m = date.get(Calendar.MINUTE);//获取分钟
            int s = date.get(Calendar.SECOND);//获取秒
            chai(h, m, s);
            TimeUnit.SECONDS.sleep(1);


        }
    }
    public  static void chai(int h, int m, int s){
        int a,b,c,d,e,f;
        a=h/10;//小时第一位数字
        b=h%10;//小时第二位数字
        c=m/10;//分钟第一位数字
        d=m%10;//分钟第二位数字
        e=s/10;//秒第一位数字
        f=s%10;//秒第二位数字
        zimu(a,b,c,d,e,f);

    }
    public static void zimu(int a1,int a2,int a3,int a4,int a5,int a6) {
        int i, j, q;
        int[][] a=new int[9][12];
        int[][] b=new int[9][96] ;
        int[] m=new int[8];
        m[0] = a1; m[1] = a2; m[2] = 11; m[3] = a3; m[4] = a4; m[5] = 11; m[6] = a5; m[7] = a6;
        for (q = 0; q < 8; q++)
        {
            if (m[q] == 11)
            {
                a[2][5] = 1; a[2][6] = 1; a[3][5] = 1; a[3][6] = 1; a[5][5] = 1; a[5][6] = 1; a[6][5] = 1; a[6][6] = 1;}
            else if (m[q] == 0)
            {
                a[0][2] = 1; a[0][3] = 1; a[0][4] = 1; a[0][5] = 1; a[0][6] = 1; a[0][7] = 1; a[0][8] = 1; a[0][9] = 1; a[1][2] = 1; a[1][9] = 1; a[2][2] = 1;
                        a[2][9] = 1; a[3][2] = 1; a[3][9] = 1; a[4][2] = 1; a[4][9] = 1; a[5][2] = 1; a[5][9] = 1; a[6][2] = 1; a[6][9] = 1; a[7][2] = 1; a[7][9] = 1;
                        a[8][2] = 1; a[8][3] = 1; a[8][4] = 1; a[8][5] = 1; a[8][6] = 1; a[8][7] = 1; a[8][8] = 1; a[8][9] = 1;}
            else if (m[q] == 1)
            {
                a[0][5] = 1; a[1][5] = 1; a[2][5] = 1; a[3][5] = 1; a[4][5] = 1;a[5][5] = 1; a[6][5] = 1; a[7][5] = 1; a[8][5] = 1;
                        a[0][6] = 1; a[1][6] = 1; a[2][6] = 1; a[3][6] = 1; a[4][6] = 1; a[5][6] = 1; a[6][6] = 1; a[7][6] = 1; a[8][6] = 1;}
            else if (m[q] == 2)
            {
                a[0][2] = 1; a[0][3] = 1; a[0][4] = 1; a[0][5] = 1; a[0][6] = 1; a[0][7] = 1; a[0][8] = 1; a[0][9] = 1; a[1][9] = 1; a[2][9] = 1;
                        a[3][9] = 1; a[4][2] = 1; a[4][3] = 1; a[4][4] = 1; a[4][5] = 1; a[4][6] = 1; a[4][7] = 1; a[4][8] = 1;a[4][9] = 1; a[5][2] = 1;
                        a[6][2] = 1; a[7][2] = 1; a[8][2] = 1; a[8][3] = 1; a[8][4] = 1; a[8][5] = 1; a[8][6] = 1; a[8][7] = 1; a[8][8] = 1; a[8][9] = 1;}
            else if (m[q] == 3)
            {
                a[0][2] = 1; a[0][3] = 1; a[0][4] = 1; a[0][5] = 1; a[0][6] = 1; a[0][7] = 1; a[0][8] = 1; a[0][9] = 1; a[1][9] = 1; a[2][9] = 1;
                        a[3][9] = 1; a[4][9] = 1; a[5][9] = 1; a[6][9] = 1; a[7][9] = 1; a[8][9] = 1; a[4][2] = 1; a[4][3] = 1; a[4][4] = 1; a[4][5] = 1;
                        a[4][6] = 1; a[4][7] = 1; a[4][8] = 1; a[8][2] = 1; a[8][3] = 1; a[8][4] = 1; a[8][5] = 1; a[8][6] = 1; a[8][7] = 1; a[8][8] = 1;}
            else if (m[q] == 4)
            {
                a[0][9] = 1; a[1][9] = 1; a[2][9] = 1; a[3][9] = 1; a[4][9] = 1; a[5][9] = 1; a[6][9] = 1; a[7][9] = 1; a[8][9] = 1; a[0][2] = 1;
                        a[1][2] = 1; a[2][2] = 1; a[3][2] = 1; a[4][2] = 1; a[4][3] = 1; a[4][4] = 1; a[4][5] = 1; a[4][6] = 1; a[4][7] = 1; a[4][8] = 1;}
            else if (m[q] == 5)
            {
                a[0][2] = 1; a[0][3] = 1; a[0][4] = 1; a[0][5] = 1; a[0][6] = 1; a[0][7] = 1; a[0][8] = 1; a[0][9] = 1; a[1][2] = 1; a[2][2] = 1;
                        a[3][2] = 1; a[4][2] = 1; a[4][3] = 1; a[4][4] = 1; a[4][5] = 1; a[4][6] = 1; a[4][7] = 1; a[4][8] = 1; a[4][9] = 1; a[5][9] = 1;
                        a[6][9] = 1; a[7][9] = 1; a[8][9] = 1; a[8][2] = 1; a[8][3] = 1; a[8][4] = 1; a[8][5] = 1; a[8][6] = 1; a[8][7] = 1; a[8][8] = 1;}
            else if (m[q] == 6)
            {
                a[0][2] = 1; a[0][3] = 1; a[0][4] = 1; a[0][5] = 1; a[0][6] = 1; a[0][7] = 1; a[0][8] = 1; a[0][9] = 1; a[1][2] = 1; a[2][2] = 1;
                        a[3][2] = 1; a[4][2] = 1; a[5][2] = 1; a[6][2] = 1; a[7][2] = 1; a[8][2] = 1; a[4][3] = 1; a[4][4] = 1; a[4][5] = 1; a[4][6] = 1;
                        a[4][7] = 1; a[4][8] = 1; a[4][9] = 1; a[5][9] = 1; a[6][9] = 1; a[7][9] = 1; a[8][3] = 1; a[8][4] = 1; a[8][5] = 1; a[8][6] = 1;
                        a[8][7] = 1; a[8][8] = 1; a[8][9] = 1;}
            else if (m[q] == 7)
            {
                a[0][2] = 1; a[0][3] = 1; a[0][4] = 1; a[0][5] = 1; a[0][6] = 1; a[0][7] = 1; a[0][8] = 1; a[0][9] = 1; a[1][9] = 1; a[2][9] = 1;
                        a[3][9] = 1; a[4][9] = 1; a[5][9] = 1; a[6][9] = 1; a[7][9] = 1; a[8][9] = 1;}
            else if (m[q] == 8)
            {
                a[0][2] = 1; a[0][3] = 1; a[0][4] = 1; a[0][5] = 1; a[0][6] = 1; a[0][7] = 1; a[0][8] = 1; a[0][9] = 1; a[1][2] = 1; a[2][2] = 1;
                        a[3][2] = 1; a[4][2] = 1; a[5][2] = 1; a[6][2] = 1; a[7][2] = 1; a[8][2] = 1; a[4][3] = 1; a[4][4] = 1; a[4][5] = 1; a[4][6] = 1;
                        a[4][7] = 1; a[4][8] = 1; a[1][9] = 1; a[2][9] = 1; a[3][9] = 1; a[4][9] = 1; a[5][9] = 1; a[6][9] = 1; a[7][9] = 1; a[8][3] = 1;
                        a[8][4] = 1; a[8][5] = 1; a[8][6] = 1; a[8][7] = 1; a[8][8] = 1; a[8][9] = 1;}
            else if (m[q] == 9)
            {
                a[0][2] = 1; a[0][3] = 1; a[0][4] = 1; a[0][5] = 1; a[0][6] = 1; a[0][7] = 1; a[0][8] = 1; a[0][9] = 1; a[1][2] = 1; a[2][2] = 1;
                        a[3][2] = 1; a[4][2] = 1; a[8][2] = 1; a[4][3] = 1; a[4][4] = 1; a[4][5] = 1; a[4][6] = 1; a[4][7] = 1; a[4][8] = 1; a[1][9] = 1;
                        a[2][9] = 1; a[3][9] = 1; a[4][9] = 1; a[5][9] = 1; a[6][9] = 1; a[7][9] = 1; a[8][3] = 1; a[8][4] = 1; a[8][5] = 1; a[8][6] = 1;
                        a[8][7] = 1; a[8][8] = 1; a[8][9] = 1;}
            for (i = 0; i < 9; i++)
                for (j = 0; j < 12 ; j++)
                    b[i][j + (q * 12)] = a[i][j];
            for (i = 0; i < 9; i++)
                for (j = 0; j < 12;  j++)
                        a[i][j] = 0;
        }
        for(i=0;i<9;i++)
            for (j = 0; j < 96; j++)
            {
                if (b[i][j] == 1)
                    System.out.print("▓");
                else
                    System.out.print("⊙");
                if (j % 96 == 0)
                    System.out.print("\n");
            }
    }
}
